package cn.bdqn.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @author zhangpengxiang
 * @description TODO
 * @date 2024/7/16
 */
@Aspect
@Component
public class ParamAdvice {
    @Before(value = "execution(* cn.bdqn.controller.*Controller.*(..))")
    public void methodBefore(JoinPoint point){
        System.out.println("----------参数信息-----------");
        System.out.println(point.getSignature());
        System.out.println("值集合：" + Arrays.asList(point.getArgs()));
    }
}
